import axios from '../utils/request'
function login(body) {
    return axios.post(`/api/login`, body)
}

function register(body) {
    return axios.post(`/api/register`, body)
}
function refresh() {
    return axios.get(`/api/refresh`)
}

export default {
    login,
    register,
    refresh
}